package com.qzsoft.zhjd.cement.modules.cementproducemonitor.controller;

import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.cement.modules.cementproducemonitor.dto.CementProduceMonitorDto;
import com.qzsoft.zhjd.cement.modules.cementproducemonitor.service.CementProduceMonitorService;
import com.qzsoft.zhjd.common.utils.ResultUtils;

/**
 * @ClassName CementProduceMonitorController
 * @Description 生产监控控制器
 * @author linhuawei
 * @since 2022-04-29
 */
@RestController
@RequestMapping("/api/cementProduceMonitor")
public class CementProduceMonitorController {

    @Autowired
    private CementProduceMonitorService cementProduceMonitorService;

    /**
     * @Title page
     * @Description 生产数据监控
     * @param params 查询条件
     * @return 生产数据监控
     */
    @RequiresPermissions("cement:producemonitor")
    @GetMapping("/page")
    public Result<IPage<CementProduceMonitorDto>> page(@RequestParam Map<String, Object> params) {
        IPage<CementProduceMonitorDto> page = cementProduceMonitorService.page(params);
        return ResultUtils.ok(page);
    }

}
